package com.zhangzhan.gulimallproduct.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zhangzhan.gulimallcommcon.util.PageUtils;
import com.zhangzhan.gulimallproduct.entity.SkuInfoEntity;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

/**
 * sku信息
 *
 * @author zhangzhan
 * @email sunlightcs@gmail.com
 * @date 2024-06-12 16:45:44
 */
public interface SkuInfoService extends IService<SkuInfoEntity> {

    PageUtils queryPage(Map<String, Object> params);

    PageUtils queryPageDetail(Map<String, Object> params);

    String getSkuName(Long skuId);

    List<String> skuAttrs(Long skuId);

    BigDecimal getPrice(Long skuId);

    Map<Long,SkuInfoEntity> getInfoByIds(List<Long> skuIds);
}

